#include("/front/teacher/_layout.html")
#@layout()
#define layoutImportcss()
#end
#define layoutHead()
	<title>个人中心</title>
#end
#define layoutHome()
#include("inc_toolbar.html")

<div class="page-content patriarch-page-content">
	
	<div class="user-head-screen">
			<div>
				<span class="head-portrait head-portrait-big">
					<img id="user_head_img" src="/front/img/user.png">
				</span>
				<span class="head-username" style="color: var(--f7-list-item-title-text-color);top:145px;" id="user_name_span"></span>
			</div>
	</div>
	<div class="list">
		<ul>
			<li>
				<a class="item-link external" href="/front/teacher/html/myinfo">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">个人资料</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a class="item-link external" href="/front/teacher/html/mylife">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">我的动态</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
			<li style="display: none;">
				<a class="item-link  external" href="/front/teacher/html/class_manage">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">班级管理</div>
							<div class="item-value"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a class="item-link external" href="/front/teacher/html/myset">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">设置</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
		</ul>
	</div>
</div>

#end
#define layoutImportjs()
#end
#define layoutScript()
<script type="text/javascript">
	sendPost('/front/teacher/user/getTeacher', null, function(res){
		//console.log(res);
		if (res.code == 200){
			$$('#user_head_img').attr('src', formatUserHeadImage(res.login_user_rd.user_img));
			$$('#user_name_span').text(res.login_user_rd.user_name);
		}
	});
</script>
#end